using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Crownwood.Magic.Common;

namespace SimExpApp
{
    static class Program
    {
        static public List<Type> ItemTypes = new List<Type>();
        static public ImageList UIIcons;
        static public ImageList ItemIcons;
        static public String Title = "SimExp v1.1";

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            ItemTypes.Add(typeof(RegExpItem));
            ItemTypes.Add(typeof(NDFAItem));
            ItemTypes.Add(typeof(DFAItem));
            ItemTypes.Add(typeof(GrammarItem));
            ItemTypes.Add(typeof(LL1Item));
            ItemTypes.Add(typeof(LRItem));
            ItemTypes.Add(typeof(BooleanItem));
            ItemTypes.Add(typeof(DigitItem));
            //foreach (Type p in System.Reflection.Assembly.GetExecutingAssembly().GetTypes())
            //{
            //    if (p.GetCustomAttributes(typeof(ItemDescriptionAttribute), false).Length != 0)
            //    {
            //        ItemTypes.Add(p);
            //    }
            //}

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
    }
}